package com.chinameyer.workorders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinameyer.workorders.bean.MeyerStaff;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author meyer@HongYe
 */
@Repository
public interface StaffMapper extends BaseMapper<MeyerStaff> {

    @Select("select * from meyer_staff where catalogue_id = #{catalogueId} order by id DESC limit #{count},#{page}")
    List<MeyerStaff> selectAllStaffWithPage(@Param("catalogueId") Integer catalogueId,@Param("count") int count,@Param("page") int page);
}
